<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./js/jquery-2.1.0.min.js">
</head>
<script>
    var json = {"username":"解决"}
    $(function(){
        $.ajax({
		url:"hhtp://192.168.1.30:8080/dish/addDish",
		type:'POST',
		dataType:'json',
		contentType:'application/json;charset=UTF-8',
		data:JSON.stringify(json),
		success:function(data, status){
			console.log(data);
		}
    });
});
</script>
<body>
    
</body>
</html>